Computer arrangement using non-refreshed dram

ABSTRACT

A computer arrangement with a processor ( 5 ) and at least one memory unit ( 7, 9, 11, 13 ) connected to the processor ( 5 ) and including dynamic random access memory ( 13 ), wherein the computer arrangment is arranged to use but not to refresh at least part of the dynamic random access memory ( 13 ) while running a program.

FIELD OF THE INVENTION

[0001] The present invention relates to a computer arrangement comprising a processor and at least one memory unit connected to the processor and comprising dynamic random access memory having a predetermined retention time, the computer arrangement being arranged for running a predetermined program on the processor while temporarily storing data during a storage time in at least part of the dynamic random access memory.

PRIOR ART

[0002] EP-A-0 917 152 discloses a semiconductor circuit and a method of controlling such a circuit. The circuit comprises dynamic random access memory (DRAM). The object is to decrease the frequency of times of refreshing operations of such DRAM in order to achieve power consumption. This object is obtained refreshing only those rows in the DRAM that contain valid data used by the logic portion of the circuit. DRAM portions that do not contain valid data are not refreshed thus saving time and power.

[0003] Similar techniques of refreshing only those portions of DRAM that contain valid data are disclosed by U.S. Pat. No. 5,1148,546, U.S. Pat. No. 5,283,885, and U.S. Pat. No. 5,469,559.

OBJECTIVES

[0004] The general objective of the present invention is to provide a method and arrangement that provide an even more effective use of DRAM and, ultimately, avoid any refreshment of DRAM.

[0005] Traditionally, all smart cards have chips which are implemented with static random access memory (RAM) cells. By using memory array imaging techniques it may be possible to maliciously extract data from such RAM. Therefore, in an embodiment, it is an objective of the invention to apply such DRAM in smart cards to reduce the risk of maliciously break-in into RAM cells by scanning data retained therein.

DESCRIPTION OF THE INVENTION

[0006] Therefore, in accordance with the invention the storage time is shorter than the retention time and the computer arrangement is arranged to use but not to refresh the at least part of the dynamic random access memory comprising the data during the running of the program.

[0007] The invention is based on the observation that in specific fields of use, notably (contactless) smart cards, the inherent time requirements are such that limited retention without refresh of data by DRAM cells is no longer an obstacle to effective use thereof.

[0008] A DRAM cell typically utilizes a single (MOS) transistor whereas a traditional RAM cell of the static type requires four or more (MOS) transistors. In accordance with the invention, part of the DRAM is not refreshed while running a program. Since no refresh operation is used the time that data is retained in the DRAM cells depends on the electrical capacity of the DRAM cell. The retention time depends on the design parameters of the cell. In many smart card applications, processing of data must be completed in less than 150 ms. DRAM cells having a retention time of for instance a few hundreds of ms can easily be designed.

[0009] Thus, data necessary for carrying out some computations can be retained long enough in DRAM cells properly designed. Since after the retention time, all data will be lost, the invention provided improves security by increasing the difficulty of maliciously extracting data from the memory.

[0010] One way in which the invention may be implemented is by not connecting the at least part of the dynamic random access memory to refresh circuitry. An alternative is to disable a refresh function of existing refresh circuitry for the at least part of the dynamic random access memory.

[0011] Since a single DRAM cell requires less space on a silicon chip than does one static RAM cell, using the same size of chip area results in having a larger memory capacity. Alternatively, the same number of necessary memory cells results in a smaller silicon area required. This is especially important for smart cards where RAM is typically the relatively largest area component. Therefore, the present invention also results in the possibility of reducing costs of smart card chips.

[0012] Therefore, the present invention also relates to a smart card provided with a computer arrangement as defined above.

[0013] However, the invention does not only relate to smart cards or the like but also to further computers like terminals arranged to communicate with such cards.

[0014] To that end the present invention relates to a terminal provided with a terminal processor and a terminal communication interface connected to said terminal processor and arranged for communicating with a computer arrangement comprising a processor, a communication interface and at least one memory unit, said communication interface and said at least one memory unit being connected to said processor, said at least one memory unit comprising memory for storing a computer program with a predetermined sequence of instructions and dynamic random access memory, said computer arrangement being arranged to use but not to refresh at least part of said dynamic random access memory while running said program, wherein said terminal processor is arranged to carry out the following steps:

[0015] (a) emulating the computer program;

[0016] (b) analyzing time period necessary for the processor of the computer arrangement to carry out each instruction of the sequence of instructions and determining all retention times necessary for the processor to temporarily store data in the at least part of the dynamic random access memory during carrying out the sequence of instructions;

[0017] (c) establishing sets of consecutive instructions for which the retention times are longer than a predetermined refresh time;

[0018] (d) adding additional instructions to the sets of consecutive instructions in order to obtain modified retention times for those sets of consecutive instructions which modified retention times are shorter than the predetermined refresh time.

[0019] It is observed that in this definition the term “terminal” is to be interpreted broadly, as including any type of computer arrangement arranged to communicate with the computer arrangement comprising the DRAM memory as defined above. Moreover, the term “terminal processor” is not intended to limit tills processor to one single processor. It may include several parallel processing and communicating sub-processors, some of which are even allowed to be physically located outside the terminal.

[0020] By using such a further computer arrangement, it is certain that data to be stored by the program to be carried out by the processor need not be retained longer in the DRAM cells than the retention time of the DRAM cells. Thus, indeed no refresh circuitry is necessary for the processor to carry out its computer program.

[0021] In a further embodiment, the invention relates to a method of running a program on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, the method comprising the step of running a predetermined program on said processor while temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is shorter than said retention time and said method further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.

[0022] Moreover, the invention relates to a computer program comprising instructions executable on a computer arrangement comprising a processor and at least one memory unit connected to said processor and comprising dynamic random access memory having a predetermined retention time, the computer program while running on said computer arrangement comprising the step of temporarily storing data during a storage time in at least part of said dynamic random access memory, wherein said storage time is shorter than said retention time and said computer program further comprises the step of using but not refreshing said at least part of said dynamic random access memory comprising said data during said running of said program.

[0023] Finally, the invention relates to a computer readable medium comprising a computer program as defined above.

BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The invention will be explained with reference to some drawings which are only intended to illustrate the present invention and not to limit its scope which is only limited by the appended claims.

[0025]FIG. 1 shows a smart card and a terminal arranged to communicate with one another;

[0026]FIG. 2 schematically shows a computer arrangement using non-refreshed DRAM;

[0027]FIG. 3 schematically shows a division of the DRAM into four memory banks;

[0028]FIG. 4 schematically shows using some memory cells in a word-line arrangement for checking the proper operation of the DRAM cells.

[0029]FIG. 5 shows a flow diagram of steps to be taken to check whether or not the content of the DRAM cells is still valid;

[0030]FIG. 6 shows a flow diagram of steps to be taken to amend a computer program such that the maximum retention times of data in memory cells are shorter than a specified retention time of the DRAM cells.

DESCRIPTION OF THE PREFERRED EMBODIMENT

[0031] The present invention will be illustrated with reference to a smart card application. However, it is to be understood that the concept of the present invention can be used outside the field of smart cards.

[0032]FIG. 1 shows a smart card 1 provided with a communication interface 3. The communication interface 3 is shown to include metallic pads. However, in contact-free embodiments, the interface comprises an antenna, e.g., a coil 3′, shown in FIG. 1 with dashed lines. Such a smart card is widely known. FIG. 1 also schematically shows a terminal 2 which is arranged to communicate with the smart card 1. Therefore, the terminal 2 comprises a communication interface 4 arranged to communicate with interface 3 of the smart card 1. The technical details for such contacting arc known to persons skilled in the art.

[0033] The terminal 2 comprises a processor 6 connected to the communication interface 4. Through its communication interface 4, the processor 6 is able to communicate with the processor (not shown in FIG. 1) of the smart card 1.

[0034] The processor 6 is shown to be one block. However, if preferred, the processor 6 may be implemented as several sub-processors communicating with one another each dedicated to perform a predetermined task. One or more of said sub-processors might be located outside the terminal 2. Preferably, the processor 6 is (or the sub-processors arc) implemented as a computer with suitable software. However, if desired, they may be implemented as dedicated digital circuits.

[0035] As shown in FIG. 2, the communication interface 3 of the smart card 1 is connected to a processor 5. In accordance with the invention, the processor 5 is connected to at least a first memory area 13 comprising DRAM (Dynamic Random Access Memory) cells.

[0036] In accordance with one embodiment of the present invention, at least part of the DRAM 13 is not connected to refresh circuitry. If the logic arrangement shown in FIG. 2 is used in smart card applications, preferably no refresh circuitry is applied at all. This saves space and circuitry in such a single chip computer. Of course, also in other applications one may decide to apply no refresh circuitry at all.

[0037] The DRAM 13 may be connected to a separate logic circuit 15, the operation of which will be explained hereinafter. The logic circuit 15 is connected to either a computing unit 17 or the communication interface 3. However, it is also possible that the logic circuit 15 is connected to both the computing unit 17 and the communication interface 3. Actually, processor 5, logic circuit 15 and computing unit 17 may be implemented as one processing unit. Moreover, all of the different units shown in FIG. 2 may be implemented as a single integrated chip.

[0038] The processor 5 is, preferably, also connected to a second memory area 11 comprising SRAM (Static Random Access Memory) cells.

[0039] Preferably, non-volatile memory such as EEPROM 7 connected to the processor 5 is also present. In most applications, also ROM (Read Only Memory) 9 connected to the processor 5 is provided.

[0040] If present, the computing unit 17 is, preferably, also connected to the ROM 9, the EEPROM 7, and the SRAM 11.

[0041] The ROM 9 and possibly the SRAM 11 and the EEPROM 7 contain the computer program that determines the behavior of the processor 5, and possibly also of the computing unit 17, when the processor 5 is used as a responding component in inter-computer communications through interface 3. In smart card applications, such inter-computer communications typically consist of command and response exchanges, which are constraint to a very short duration. For a contactless smart card, the time available for communication is typically in the order of 150 ms. In that short time period the smart card 1 receives one or more data transmissions that function as commands. The processor 5 processes the commands which typically include cryptographic computations and instructions to update the non-volatile memory 7. At the end of its processing, the processor 5 sends its response.

[0042] So far, the use of DRAM cells has not seriously been considered for smart card applications. They were considered to be too unreliable due to their inherent limited retention time and not to be cost-effective due to the necessary additional on-chip refresh logic circuitry to compensate for the limited retention time.

[0043] Now, contrary to the prior art, the arrangement according to the invention comprises DRAM cells 13 of which, in a preferred embodiment, at least part is not connected to refresh circuitry. Due to the field of application, the timing constraints are such that refresh circuitry is superfluous. Such timing constraints are most prominent in contactless smart card applications where due to field strength fluctuations experienced by the smart card chip, as it is moved by its user across a communication range of a terminal, all data exchange and processing must be completed in less than 150 ms.

[0044] However, also in other fields than contactless smart card applications the invention may advantageously be applied. In general, in accordance with the invention, a predetermined program is running on the processor that needs data to be temporarily stored on the dynamic random access memory 13 during a necessary storage time. This storage time for all portions of valid data during running the program, i.e., carrying out consecutive program steps, is such that it is shorter than the retention time of the dynamic random access memory 13 used. Thus, no refresh cycles for the DRAM are necessary anymore and refreshment will not be used anymore.

[0045] In practice, chips implemented according to the invention will remain having a limited RAM storage implemented with static cells to store data such as the return stack or essential security or program state values, the RAM consisting of, e.g., 128 bytes. As the basic memory cell of a DRAM is typically at least four times smaller than the basic memory cell of a SRAM, a chip in accordance with the invention can in average provide four times more memory at equal costs.

[0046] A further advantage of the present invention can be obtained by realizing the DRAM 13 not as a single controlled array but as two or more independently controlled simultaneously accessible banks 13(1), 13(2), 13(3), 13(4), as shown in FIG. 3. FIG. 3 shows four such banks, however, it is to be understood that the number of banks may be different. Using a number of different banks would facilitate the use of additional logic circuitry on a single chip computer arrangement. Such additional logic circuitry may relate to a coprocessor in the form of an additional computing unit 17 which is arranged to carry out additional cryptographic computations while using only one of the banks, e.g., bank 13(1).

[0047] To that end all banks 13(1) . . . 13(4) are connected to an address bus, a data bus and read and write lines (see FIG. 3). The signals carried by these different lines are known to a person skilled in the art. By means of the address bus, the computing unit 17 is able to address memory cells in bank 13(1) whereas these memory cells are, then, not accessible to processor 5. By providing a separate computing unit 17, computations can be carried out simultaneously, thus, ensuring that a process can be carried out in the required timing constraints of e.g. 150 ms.

[0048] It is observed that FIG. 3 is very schematic. The arrangement is such that at least one of the memory banks 13(1) . . . 13(4) can be selected independently from the other memory banks. This can be done by multiplexing techniques on the address bus, data bus, read and write lines. However, this may also be done by providing separate address busses, data busses, read and write lines for each independent memory bank, as is known to persons skilled in the art.

[0049] Instead of or in addition to using a computing unit 17, which accesses the DRAM 13 through the logic circuit 15, a DMA (Direct Memory Access) communication procedure can be provided for. To that end, the logic circuit 15 is, then, connected to the communication interface 3 such that an external processor (e.g., processor 6 of the terminal 2) is able to directly access DRAM 13. Preferably, through such a DMA communication procedure, the external processor is only able to obtain access to one of the banks 13(1) . . . 13(4). This all could increase the speed of execution and allow for reduced power consumption. Non-traditional CPU design, e.g. RISC (=Reduced Instruction Set Computer), might also benefit from multi-banked RAM.

[0050] As customary, the DRAM cells may be organized into a rectangular structure consisting of a number of word-lines, each containing a number of bit memory cells to store data for a multiple of bytes. One such word-line is schematically shown in FIG. 4. To safeguard against unexpected longer storage periods than the maximum retention time of the individual DRAM cells which might result in using data incorrectly retrieved from the DRAM cells, each word-line in the memory area may comprise one or more “witness” storage cells. FIG. 4 shows a situation in which four such “witness” storage cells at the right-hand side of the word-line are used. As shown in step 50 of FIG. 5, these four storage cells, at the outset of a write action into the word-line, are provided with a predetermined pattern of data: in FIG. 4 this pattern is 0 1 1 0. Of course, an other pattern of predetermined logic values may be used. Also, the number of “witness” storage cells may differ. As shown in step 52 of FIG. 5, the “witness” cells are read each time data stored in the word-line cells is read by processor 5 or by any other additional logic processor, such as computing unit 17 (not shown in FIG. 4). Checking logic 19 connected to processor 5 (or any other additional processor present) is arranged to check whether the data pattern read from the “witness” cells still equals the predetermined logic pattern; step 54 in FIG. 5. If the predetermined logic pattern is not present anymore, the checking logic 19 will send a warning signal to the processor 5 (or any other processor concerned); step 56. Such a warning signal will, then, be interpreted as a failure of any data read by the processor 5 (or any other processor concerned). An appropriate execution exception then prevents normal completion of the actual program. If no failure has been detected, the actual program can continue running. This mechanism may be deployed to fend off attacks against the chip's integrity which might be mounted by artificially elongating the processing time to cause incorrect data to be used in computations.

[0051] Although, in FIG. 4, the checking logic 19 is shown as a separate unit it is to be understood that the checking logic 19 may be part of the processor 5 (or any other processor).

[0052] The “witness” storage cells may be part of the normally designed word-line. However, alternatively, a normally designed word-line may be extended by such “witness” storage cells. In one embodiment, these “witness” storage cells are designed such that their data retention times are significantly shorter, e.g. 5-10%; than the data retention times of the other memory cells on the same word-line. Thus, upon detecting that the content of the “witness” storage cells is correct it is even more likely that the content of the other storage cells of the same word-line is still correct by the time of reading.

[0053] In a further alternative embodiment, after having manufactured the DRAM cells it is tested which memory cells in a word line show the shortest retention times. One or more of these cells may then be used as “witness” cells.

[0054] To support obtaining the benefits of the invention and to ascertain conformance to the timing constraints of the DRAM 13, the software loaded in e.g. ROM 9 or EPROM 7 may be preprocessed and optimized with respect to storage timing by processor 6 of terminal 2. The processor 6 is arranged to compile that software. During pre-processing, the processor 6 analyzes the time period necessary for the processor 5 to carry out each instruction of the software and all retention times necessary for the processor 5 (or any other processor like the computing unit 17 using the DRAM 13) to temporarily store data in the DRAM 13 during running the software.

[0055]FIG. 6 shows steps carried out by processor 6 for such a preprocessing program. After having emulated the program, step 60, the processor 6 analyzes all sections of executable code of the software, step 62, and computes the time between updates of stored data used by the code sections, step 64. Then, the processor 6 establishes sets of consecutive instructions in the program for which the retention times in the DRAM 13 would be longer than the specified refresh time of the DRAM 13, step 66. Known techniques for code rearrangement, such as unrolling program loops and inserting additional instructions to explicit read-and-then-write storage locations, i.e. a kind of artificial refresh operation, are used to guarantee that all data stored by the software in the DRAM 13 is used well before the end of the memory cell retention period, step 68. Without using traditional refresh circuitry, then, still all DRAM cells are refreshed in time.

[0056] Above, the invention has been illustrated with reference to an embodiment in which the Dram 13 is physically not connected to a refresh circuitry. However, the principles of the invention may also be applied by disabling the refresh functionality of an existing computer arrangement comprising a refresh circuitry. In such an embodiment, existing refresh circuitry need not be taken away. 

1. A computer arrangement comprising a processor (5) and at least one memory unit (7, 9, 11, 13) connected to said processor (5) and comprising dynamic random access memory (13) having a predetermined retention time, said computer arrangement being arranged for running a predetermined program on said processor (5) while temporarily storing data during a storage time in at least part of said dynamic random access memory (13), wherein said storage time is shorter than said retention time and said computer arrangement is arranged to use but not to refresh said at least part of said dynamic random access memory (13) comprising said data during said running of said program.
 2. A computer arrangement according to claim 1, wherein said at least part of said dynamic random access memory (13) is not connected to refresh circuitry.
 3. A computer arrangement according to claim 1 or 2, wherein said dynamic random access memory is divided into two or more memory banks (13(1), 13(2), 13(3), 13(4)), each memory bank being independently accessible for storing or retrieving of data.
 4. A computer arrangement according to claims 1, 2 or 3, wherein a further part (13(1)) of said dynamic random access memory is controlled by additional logic circuitry (15).
 5. A computer arrangement according to claim 4, wherein said additional logic circuitry (15) is connected to a communication interface (3).
 6. A computer arrangement according to claim 4, comprising an additional computing unit (17) connected to said additional logic circuitry (15).
 7. A computer arrangement according to any of the preceding claims, wherein said dynamic random access memory is provided with a plurality of word lines, each word line comprising an array of memory cells, at least one of said word lines comprising a series of one or more memory cells connected to checking logic circuitry (19) connected to said processor (5) and arranged to carry out the following steps: (a) writing predetermined logic values into said series of one or more memory cells whenever the processor writes data into said at least one word line; (b) reading actual content of said series of one or more memory cells whenever said at least one word line is read by said processor; (c) checking whether said actual content equals said predetermined logic values; (d) transmitting a warning signal to said processor upon detecting that said actual content does not equal said predetermined values.
 8. A computer arrangement according to claim 7, wherein said series of one or more memory cells of said at least one word line is implemented using memory cells with less memory retention time than the other memory cells in said at least one word line.
 9. A computer arrangement according to one of the preceding claims, implemented as single chip arrangement.
 10. A smart card (1) provided with a computer arrangement according to one of the preceding claims.
 11. A terminal (2) provided with a terminal processor (6) and a terminal communication interface (4) connected to said terminal processor (6) and arranged for communicating with a computer arrangement comprising a processor (5), a communication interface (3) and at least one memory unit (7, 9, 11, 13), said communication interface (3) and said at least one memory unit (7, 9, 11, 13) being connected to said processor (5), said at least one memory unit comprising memory (7; 9; 11) for storing a computer program with a predetermined sequence of instructions and dynamic random access memory (13), said computer arrangement being arranged to use but not to refresh at least part of said dynamic random access memory (13) while running said program, wherein said terminal processor (6) is arranged to carry out the following steps: (a) emulating said computer program; (b) analyzing time period necessary for the processor (5) of the computer arrangement (1) to carry out each instruction of said sequence of instructions and determining all retention times necessary for the processor (5) to temporarily store data in said at least part of said dynamic random access memory (13) during carrying said sequence of instructions; (c) establishing sets of consecutive instructions for which said retention times are longer than a predetermined refresh time; (d) adding additional instructions to said sets of consecutive instructions in order to obtain modified retention times for those sets of consecutive instructions which modified retention times are shorter than said predetermined refresh times.
 12. A method of running a program on a computer arrangement comprising a processor (5) and at least one memory unit (7, 9, 11, 13) connected to said processor (5) and comprising dynamic random access memory (13) having a predetermined retention time, the method comprising the step of running a predetermined program on said processor (5) while temporarily storing data during a storage time in at least part of said dynamic random access memory (13), wherein said storage time is shorter than said retention time and said method further comprises the step of using but not refreshing said at least part of said dynamic random access memory (13) comprising said data during said running of said program.
 13. A computer program comprising instructions executable on a computer arrangement comprising a processor (5) and at least one memory unit (7, 9, 11, 13) connected to said processor (5) and comprising dynamic random access memory (13) having a predetermined retention time, the computer program while running on said computer arrangement comprising the step of temporarily storing data during a storage time in at least part of said dynamic random access memory (13), wherein said storage time is shorter than said retention time and said computer program further comprises the step of using but not refreshing said at least part of said dynamic random access memory (13) comprising said data during said running of said program.
 14. A computer readable medium comprising a computer program as claimed in claim
 13. 